<template>
  <div class="test-container">
    <Loading v-show="loading" />
    <button @click="loading = !loading">切换loading状态</button>
  </div>
</template>

<script>
import Loading from "./";
export default {
  components: {
    Loading,
  },
  data() {
    return {
      loading: true,
    };
  },
};
</script>

<style lang="less" scoped>
.test-container {
  position: relative;
  width: 500px;
  height: 500px;
  background-color: lightblue;
}
</style>